﻿using OpenfireAPI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QDChat.Test.Code
{
    public class SdkHelper
    {
        public void Demo()
        {
            var url = "http://192.168.1.162";

            var auth = new OpenfireAPI.util.OpenfireAuthenticator("admin", "admin");
            OpenfireAPIClient client = new OpenfireAPIClient(url, 9090, auth);
            
            //Request All available users
           // var ues = client.getUsers();

            //Get specific user by username
            var ue = client.getUser("test02");

            //Create new user
            //bool result = client.createUser(new OpenfireAPI.entity.UserEntity { username = "test", email = "test@gmail.com", name = "test", password = "ZAQ!2wsx" });

        }
    }
}
